package com.tiancheng.trade.settlement.mapper.settlement;

import com.tiancheng.trade.settlement.mapper.TYBaseMapper;
import com.tiancheng.trade.settlement.model.settlement.SettlementBankWaitBill;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 银行清分待对账
 *
 * @author chris.shao
 * @since 2024/4/20
 */
@Repository
public interface SettlementBankWaitBillMapper extends TYBaseMapper<SettlementBankWaitBill> {
    /**
     * 更新对账状态为已对账
     *
     * @param subOrderKey
     * @return
     */
    int updateStatus(List<String> subOrderKey);

    /**
     * 更新子订单号为空的数据对账状态为已对账
     *
     * @return
     */
    int updateSubOrderIdIsNullStatus();

    /**
     * 将清分规则缺失的待对账数据状态修改为已对账
     *
     * @param subOrderIds
     * @return
     */
    int updateErrorDataStatus(List<String> subOrderIds);

}